<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<jsp:include page="/jsp/loginCheck.jsp" />
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<s:head theme="ajax" calendarcss="calendar-green"/>   
	
	<title>Usuários</title>
	<link href="../css/estiloframes.css" rel="stylesheet" type="text/css" />
	<link rel="stylesheet" href="../css/blue.css" type="text/css" id="" media="print, projection, screen" />
	<link rel="stylesheet" href="../css/ui.all.css" type="text/css"/>
	
	<script type="text/javascript" src="../js/jquery-latest.js"></script>
	<script type="text/javascript" src="../js/jquery.tablesorter.js"></script>
	<script type="text/javascript" src="../js/jquery.tablesorter.pager.js"></script>
	
	<script type="text/javascript">
		$(document).ready(function() {
			$("table").tablesorter({
				headers: {4: {sorter: false}},
				widthFixed: true,
				widgets: ['zebra']
			}).tablesorterPager({container: $("#pager")});
		});
	</script>
	</head>
	
	<body>
	<div id="corpo">
	<s:form action="Monitoramentos" name="myForm">
		<s:hidden value="%{monitoramento.dataInicio}" name="monitoramento.dataInicio"/>
		<s:hidden value="%{monitoramento.dataFim}" name="monitoramento.dataFim"/>
		<br />
		<p class="titulo_texto">Monitoramento</p>
		<div style="padding-left:10px;padding-right:10px;">
			<table class="tablesorter" align="center" width="620" border="0" cellpadding="4" cellspacing="4">
			  	<thead>
					<tr class="header" align="center">
						<th><s:text name="Pesquisa"/></th>
						<th><s:text name="Data Inicial"/></th>
						<th><s:text name="Data Final"/></th>
						<th><s:text name="Recibo"/></th>
						<th><s:text name="Mapa"/></th>
					</tr>
				</thead>
				<tbody>
					<s:iterator value="monitoramentos">
						<tr>
						<td>
							<s:if test="idPesquisa >= 2"><a href="<s:url action='detailMonitoramentos'><s:param name="monitoramento.id" value="%{id}"/></s:url>" ><s:property value="labelPesquisa"/></a></s:if>
							<s:else><s:property value="labelPesquisa"/></s:else>							
						</td>	
						<td><s:property value="dataInicio"/>   <s:property value="horaInicio"/></td>
						<td><s:property value="dataFim"/>   <s:property value="horaFim"/></td>
						<td><s:property value="protocolo"/></td>
						<td>
							<a href="<s:url action='getMapMonitoramentos'><s:param name="monitoramento.local" value="%{local}"/></s:url>" ><img src="../images/btn/mapa.png" alt="Mapa" style="cursor:pointer;" border="0"/></a>
						</td>
						</tr>
					</s:iterator>													
				</tbody>		   
			</table>
			<div id="pager" class="pager">
				<form>
					<img src="../images/icons/first.png" class="first"/>
					<img src="../images/icons/prev.png" class="prev"/>
					<input type="text" class="pagedisplay" disabled="disabled"/>
					<img src="../images/icons/next.png" class="next"/>
					<img src="../images/icons/last.png" class="last"/>
					<select class="pagesize" disabled="true">
						<option selected="selected"  value="5">5</option>																				
					</select>
				</form>
			</div>
		</div>
	</s:form>
	</div>
</body>
</html>
